<?php
/*
 * Created on May 14, 2009
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
?>
<fieldset class="width2">
<legend><img src="<?php echo $this->base_url?>/images/admin/tab-categories.gif"><?php echo $legend_text?></legend>
<?php echo $error_message?>
<form action="<?php echo $this->base_url?>admin/pcategory/save" method="post">
	<table>
	
	<tr>
		<td>
		<?php echo lang('category_code')?> 
		</td>
		<td>
		<input type="text" class="text" name="txtCode" id="txtCode" value="<?php echo $category->code?>" style="width: 150px;" maxlength="60" /> <?php echo lang('invalid_characters')?>
		</td>
	</tr>
	<tr>
		<td><?php echo lang('category_parent')?></td>
		<td>
		<?php echo $ddlPatentCategory?>
		</td>
	</tr>
	<tr>
		<td><?php echo $this->lang->line('vi_name')?></td>
		<td>
		<input type="text" style="width: 260px; height:20px" class="text" name="txtViName" id="txtViName" value="<?php echo $category->vi_name?>" maxlength="100" />
		</td>
	</tr>
	<tr>
		<td><?php echo lang('en_name')?></td>
		<td>
		<input type="text" style="width: 260px; height:20px" class="text" name="txtEnName" id="txtEnName" value="<?php echo $category->en_name?>" maxlength="100" />
		</td>
	</tr>
	<tr>
		<td><?php echo lang('vi_description')?></td>
		<td>
		<textarea name="txtViDescription" id="txtViDescription" rows="5" cols="50" wrap="off"><?php echo $category->vi_description?></textarea>
		</td>
	</tr>
	<tr>
		<td><?php echo lang('en_description')?></td>
		<td>
		<textarea name="txtEnDescription" id="txtEnDescription" rows="5" cols="50" wrap="off"><?php echo $category->en_description?></textarea>
		</td>
	</tr>
	<tr>
		<td><?php echo lang('friendly_url')?></td>
		<td>
		<input type="text" style="width: 160px; height:20px" class="text" name="txtLinkRewrite" id="txtLinkRewrite" value="<?php echo $category->link_rewrite?>" maxlength="200" />
		</td>
	</tr>
	<tr>
		<td><?php echo lang('meta_title')?></td>
		<td>
		<input type="text" style="width: 160px; height:20px" class="text" name="txtMetaTitle" id="txtMetaTitle" value="<?php echo $category->meta_title?>" maxlength="200" />
		</td>
	</tr>
	<tr>
		<td><?php echo lang('meta_keywords')?></td>
		<td>
		<input type="text" style="width: 160px; height:20px" class="text" name="txtMetaKeywords" id="txtMetaKeywords" value="<?php echo $category->meta_keywords?>" maxlength="200" />
		</td>
	</tr>
	<tr>
		<td><?php echo lang('meta_description')?></td>
		<td>
		<input type="text" style="width: 160px; height:20px" class="text" name="txtMetaDescription" id="txtMetaDescription" value="<?php echo $category->meta_description?>" maxlength="200" />
		</td>
	</tr>
	<tr>
		<td><?php echo lang('active')?></td>
		<td>
		<input type="checkbox" class="checkbox" <?php echo $category->active==1? 'checked' : ''?> name="active" value="1" />
		</td>
	</tr>
	<tr>
		<td></td>
		<td> 
		<?php echo lang('indicates_a_required_field');?>
 		</td>
	</tr>
	
</table>
<input type="hidden" name="txtID" id="txtID" value="<?php echo $category->id_pcategory?>"/>
<p> <input type="submit" class="submit button" name="btSave" value="<?php echo lang('save')?>" /> </p>
</form>
</fieldset>